package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.WdyBuyProduct;
import com.ruoyi.system.domain.WdyVcRelease;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * vc释放 服务层
 * 
 * @author ruoyi
 * @date 2019-12-16
 */
public interface IWdyVcReleaseService extends IService<WdyVcRelease>
{
	/**
     * 查询vc释放信息
     * 
     * @param id vc释放ID
     * @return vc释放信息
     */
	public WdyVcRelease selectWdyVcReleaseById(Long id);
	
	/**
     * 查询vc释放列表
     * 
     * @param wdyVcRelease vc释放信息
     * @return vc释放集合
     */
	public List<WdyVcRelease> selectWdyVcReleaseList(WdyVcRelease wdyVcRelease);
	
	/**
     * 新增vc释放
     * 
     * @param wdyVcRelease vc释放信息
     * @return 结果
     */
	public int insertWdyVcRelease(WdyVcRelease wdyVcRelease);
	
	/**
     * 修改vc释放
     * 
     * @param wdyVcRelease vc释放信息
     * @return 结果
     */
	public int updateWdyVcRelease(WdyVcRelease wdyVcRelease);
		
	/**
     * 删除vc释放信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteWdyVcReleaseByIds(String ids);

	public WdyBuyProduct release(WdyBuyProduct wdyBuyProduct, Date curDate);

	public void pick(WdyVcRelease wdyVcRelease, Date curDate);

	public void pickVcAll(String userId);

    BigDecimal getSum(WdyVcRelease wdyVcRelease);
}
